<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\index\model\Bbsdemo;
use app\index\model\Test;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        $list = Bbsdemo::bbs();
        $this->assign('list',$list);
        return $this->view->fetch();
    }

    public function bbs()
    {
        $list = Bbsdemo::bbs();
        $this->assign('list',$list);
        return $this->view->fetch('index');
    }

    public function test()
    {
        $list = Test::showtest();
        $this->assign('list',$list);
        return $this->view->fetch('index');
    }
}
